<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="admin/_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <title>注册</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/mine.css">
</head>

<body>
<div class="ui white basic right aligned segment m-padded-lr-responsive">
    <a class="ui circular icon button" data-tooltip="1269670415" data-position="bottom center"><i
            class="qq icon"></i></a>
</div>
<br>
<br>
<br>
<br>
<br>
<br>

<div class="m-container-small m-padded-tb-massive" style="max-width: 35em !important;">


    <div class="ui container">

        <div class="ui middle aligned center aligned grid">
            <div class="column">
                <h2 class="ui teal image header">
                    <div class="content">
                        注册
                    </div>
                </h2>
                <form class="ui large form" action="#" th:action="@{/admin/register}" method="post">
                    <div class="ui stacked segment">
                        <div class="field">
                            <div class="ui left icon input">
                                <i class="user icon"></i>
                                <input type="text" name="username" placeholder="用 户 名">
                            </div>
                        </div>
                        <div class="field">
                            <div class="ui left icon input">
                                <i class="user icon"></i>
                                <input type="text" name="nickname" placeholder="昵 称">
                            </div>
                        </div>
                        <div class="field">
                            <div class="ui left icon input">
                                <i class="user icon"></i>
                                <input type="text" name="type" placeholder="用 户 类 型">
                            </div>
                        </div>
                        <div class="field">
                            <div class="ui left icon input">
                                <i class="user icon"></i>
                                <input type="text" name="email" placeholder="邮 箱">
                            </div>
                        </div>
                        <div class="field">
                            <div class="ui left icon input">
                                <i class="user icon"></i>
                                <input type="text" name="avatar" placeholder="头 像 图 片 地 址">
                            </div>
                        </div>
                        <div class="field">
                            <div class="ui left icon input">
                                <i class="lock icon"></i>
                                <input type="text" name="password" placeholder="密 码">
                            </div>
                        </div>
                        <button class="ui fluid large teal submit button">注   册</button>
                    </div>

<!--                    <div class="ui error mini message"></div>-->
<!--                    <div class="ui mini negative message" th:unless="${#strings.isEmpty(message)}" th:text="${message}">1111</div>-->
                </form>
            </div>
        </div>

    </div>
</div>






<!----------------JS---------------->
<!--/*/<th:block th:replace="admin/_fragments :: script" >/*/-->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<script src="../../static/js/mine.js"></script>
<!--/*/</th:block>/*/-->

<script>
    $('.ui.form').form({
        fields: {
            title1: {
                identifier: 'username',
                rules: [{
                    type: 'empty',
                    prompt: '账号为空'
                }]
            },
            title2: {
                identifier: 'password',
                rules: [{
                    type: 'empty',
                    prompt: '密码为空'
                }]
            }
        }
    });
</script>
<!----------------JS---------------->
</body>
</html>